[Unit]
Description=zookeeper.service
After=network.target

[Service]
Type=forking
Environment=ZOO_LOG_DIR={{ zookeeper_work_dir }}/logs
Environment=JAVA_HOME={{ jdk_dir }}
ExecStart={{ zookeeper_work_dir }}/bin/zkServer.sh start
ExecStop={{ zookeeper_work_dir }}/bin/zkServer.sh stop
ExecReload={{ zookeeper_work_dir }}/bin/zkServer.sh restart

[Install]
WantedBy=multi-user.target